Skip to content

chore(migration): Migrate code from googleapis/python-db-dtypes-pandas into packages/db-dtypes#16012

Open
parthea wants to merge 237 commits intomainfrom
migration.Python-db-dtypes-pandas.migration.2026-03-02_20-30-38.migrate
Open

chore(migration): Migrate code from googleapis/python-db-dtypes-pandas into packages/db-dtypes#16012
parthea wants to merge 237 commits intomainfrom
migration.Python-db-dtypes-pandas.migration.2026-03-02_20-30-38.migrate

Conversation

@parthea
Copy link
Contributor

@parthea parthea commented Mar 2, 2026

See #11017.

This PR should be merged with a merge-commit, not a squash-commit, in order to preserve the git history.

tswast and others added 30 commits September 20, 2021 16:54
* test: disable system test session

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* add pandas to intersphinx

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* actually use dependencies

* add constraints

* fix conflict with numpy

* bump minimum packaging

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
* test: Don't use the equal_nan option of array_equal. It requires new versions of numpy

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* blacken

* fix: support pandas 0.24

* blacken

* remove 'stop on first error'

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Tim Swast <swast@google.com>
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-db-dtypes-pandas/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [x] Ensure the tests and linter pass
- [x] Code coverage does not decrease (if any source code was changed)
- [x] Appropriate docs were updated (if necessary)

Fixes #2 🦕

This builds-on/includes #8, which builds-on/includes #7.
* fix: support converting empty `time` Series to pyarrow Array

* use object dtype for time numpy array

* backport to_numpy

* remove redundant test
…22)

* chore: add default_version and codeowner_team to .repo-metadata.json

* update codeowner_team
* fix: avoid rounding problems with microseconds

* add more tests

* adjust regex to parse fraction as integer
…le (#25)

Source-Link: googleapis/synthtool@a7ed11e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:6e7328583be8edd3ba8f35311c76a1ecbc823010279ccb6ab46b7a76e25eafcc

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
* docs: add how-to guide and include API reference

* fix indentation

* fix types in sample

* fix types in sample
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
#35)

* chore(python): push cloud library docs to staging bucket for Cloud RAD

Source-Link: googleapis/synthtool@7fd61f8
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:4ee57a76a176ede9087c14330c625a71553cf9c72828b2c0ca12f5338171ba60

* update replacement in owlbot.py

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Source-Link: googleapis/synthtool@694118b
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:ec49167c606648a063d1222220b48119c912562849a0528f35bfb592a9f72737

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [pyarrow](https://arrow.apache.org/) | ` >= 3.0.0, < 6.0dev` -> `>=3.0.0, <6.1` | [![age](https://badges.renovateapi.com/packages/pypi/pyarrow/6.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/pyarrow/6.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/pyarrow/6.0.0/compatibility-slim/5.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/pyarrow/6.0.0/confidence-slim/5.0.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-db-dtypes-pandas).
* feat: support Python 3.10

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
…#39)

* feat: support conversion from pyarrow RecordBatch to pandas DataFrame

* hack together working implementation

TODO: add tests for constructing pandas Series with pyarrow scalars

* fix unit test coverage, optimize arrow to numpy conversion

* apply same optimizations to to_arrow conversion

* remove redundant to_numpy now that to_arrow doesn't use it

* be explicit about chunked array vs array

* add docstrings to arrow conversion functions

* add test case for round-trip to/from pyarrow nanosecond-precision time scalars

* add time32("ms") test case without nulls for completeness
Source-Link: googleapis/synthtool@c5026b3
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:0e18b9475fbeb12d9ad4302283171edebb6baf2dfca1bd215ee3b34ed79d95d7

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
* fix: raise ValueError if date is out-of-bounds

* unify _datetime return type

* add relevant unit test
@parthea parthea marked this pull request as ready for review March 5, 2026 22:12
@parthea parthea requested review from a team as code owners March 5, 2026 22:12
@parthea parthea removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Mar 5, 2026
@parthea
Copy link
Contributor Author

parthea commented Mar 5, 2026

The issue with the prerelease test is tracked in #15509 and #15618

@parthea parthea added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Mar 5, 2026
@parthea parthea assigned parthea and unassigned chalmerlowe Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Indicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.